<template>
  <el-drawer :title="parameter.title"
             v-model="parameter.isShow"
             :visible.sync="parameter.isShow"
             :direction="parameter.direction || 'rtl'"
             :before-close="()=>parameter.close()"
  >
    <slot></slot>
  </el-drawer>
</template>

<script>

export default {
  name: "Dialog",
  props: {
    parameter: {
      type: Object, required: true,
      default: {
        isShow: false,
        title: '',
        close:()=>{}
      }
    }
  },
  data(){
    return {
    }
  },
  watch:{
    parameter(nv,ov){
      console.log(3333,nv);
    }
  },
  methods:{
  }
}
</script>

<style scoped>

</style>
